home *** CD-ROM | disk | FTP | other *** search
/ Digitální fotografie a video / Digitalni-fotografie-a-video-covermount.bin / Aplikace / Servis / Katalog / Katalog.dxr / 00069_Ovládání demo.ls < prev    next >
Encoding:
Text File  |  1998-05-19  |  1.1 KB  |  44 lines

  1. property Tlacitko
  2. global Demo
  3.  
  4. on beginSprite me
  5.   set the visible of sprite the spriteNum of me to 1
  6.   set the visible of sprite (the spriteNum of me + 1) to 0
  7. end
  8.  
  9. on endSprite me
  10. end
  11.  
  12. on mouseEnter me
  13.   puppetSound(2, "Najezd")
  14.   set the cursor of sprite the spriteNum of me to [member "ruka_1", member "ruka_2"]
  15.   set the visible of sprite (the spriteNum of me + 1) to 1
  16.   set Tlacitko to the castNum of sprite (the spriteNum of me + 1)
  17. end
  18.  
  19. on mouseLeave me
  20.   set the visible of sprite (the spriteNum of me + 1) to 0
  21.   set the cursor of sprite the spriteNum of me to -1
  22.   if Tlacitko > 0 then
  23.     set the member of sprite (the spriteNum of me + 1) to member Tlacitko
  24.   end if
  25. end
  26.  
  27. on mouseDown me
  28.   if Tlacitko > 0 then
  29.     set the member of sprite (the spriteNum of me + 1) to member (Tlacitko + 1)
  30.   end if
  31. end
  32.  
  33. on mouseUp me
  34.   global xxxx, AutoShow
  35.   set AutoShow to 0
  36.   if Tlacitko > 0 then
  37.     set the member of sprite (the spriteNum of me + 1) to member Tlacitko
  38.   end if
  39.   set xxxx to "Ahoj"
  40.   if Demo <> EMPTY then
  41.     play movie the pathName & Demo
  42.   end if
  43. end
  44.